<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
  let ws = new WebSocket('ws://127.0.0.1:3050/ws/upgrade')
  ws.onopen = () => console.log('ws ok');
  ws.onmessage = msg => {
    console.log(msg.data)
  }
  </script>
</body>
</html>